import '@/assets/main.scss'

import { createApp } from 'vue'
import pinia from './stores'

//完整引入element-plus资源
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'

import App from './App.vue'
import router from './router'

//初始化esri的apikey
import esriConfig from '@arcgis/core/config.js'
esriConfig.apiKey =
  'AAPT3NKHt6i2urmWtqOuugvr9Xbp45GdQqz97d0K2G_CCwXSN6fA1S8y-QyXa6kP9UWQtGCwscLLhr_uMdv0FPFv4IN_2YOgdfv56m7dTVWnJDiaXEFBiYc4iGoFaJcyizm_aFdz8mRwXRSCstENPw8i2bv3Hhsv3b232olO9P2NOFMCwAbsh6o8gHuqLJe8mbe9ya9yar01inA2KNgFxdEurZLggJJFmfc2OJGLv6dY8PcK7Ag1I_ijPoqfxQ9g1zbB'
//初始化esri语言
import * as intl from '@arcgis/core/intl.js'
intl.setLocale('zh-CN')

const app = createApp(App)

app.use(pinia)
app.use(ElementPlus)
app.use(router)

app.mount('#app')
